<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增车型')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-type-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">车型型号名称：</label>
                <div class="col-sm-8">
                    <input name="carTypeName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">车型公告号：</label>
                <div class="col-sm-8">
                    <input name="noticeNumber" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生产厂商统一信用代码：</label>
                <div class="col-sm-8">
                    <input name="agreesNumber" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">公告号批次：</label>
                <div class="col-sm-8">
                    <input name="noticeNumberNo" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
            <label class="col-sm-3 control-label">车辆种类：</label>
            <div class="col-sm-8">
                <select  name="kid" class="form-control">

                </select>
            </div>
        </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "car/type"
        $("#form-type-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-type-add').serialize());
            }
        }
        // $(function () {
        //     $.ajax({
        //         url:"",
        //         type:"get",
        //         dataType:"json",
        //         success:function (n) {
        //             console.log(n);
        //         }
        //     })
        // })
    </script>
</body>
</html>
